<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class StorePostRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return false;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            //表单进行验证
            'patient' => 'required',//密码不能为空
            'visit_card' => 'required',
            'user_id' => 'required',
            'doctor_id' => 'required',
            'id_card' => 'required',
            'phone' => 'required',
            'sub_office' => 'required',
            'sub_type' => 'required',
            'sub_price' => 'required',
            'sub_status' => 'required',
            'address' => 'required',
            'sub_time' => 'required',
            'visit_time' => 'required',
        ];
    }
}
